package cc.linker.steplink.crm.merchanth5.dao;

import cc.linker.steplink.crm.merchanth5.pojo.H5SignPo;
import cc.linker.steplink.crm.merchanth5.pojo.SignLogPo;
import cc.linker.steplink.crm.merchanth5.pojo.SignPo;
import cc.linker.steplink.crm.merchanth5.pojo.SignRewardLogPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SignDao {
    void save(SignPo signpo);

    SignPo getInfo(SignPo signpo);

    List<Map<String, Object>> getLogList(@Param("orgId") String orgId);

    int getAllCustomerNum(@Param("orgId") String orgId);

    int getNum(@Param("orgId") String orgId);

    List<Map<String, Object>> getSignSendLog(Map<String, Object> map);

    List<SignLogPo> getCustomerSignLogByDate(@Param("customerId") String customerId, @Param("days") List<String> days);

    int getSendNum(String orgId);

    void addSendLog(SignRewardLogPo signRewardLogPo);

    H5SignPo getSignInfo(H5SignPo h5SignPo);

    List<SignLogPo> getSignLog(@Param("customerId") String customerId);

    void addSignLog(SignLogPo signLogPo);

    int getCustomerSignIsNew(SignLogPo signLogPo);

    int getCustomerSignIsSeries(SignLogPo signLogPo);

    int getTodaySignLog(String customerId);

    int getIsSigned(H5SignPo h5SignPo);

    void setSignTime(SignPo signpo);
}
